package io.renren.modules.communityService.conver;

import io.renren.modules.communityService.dto.DbOneClickAlarmDTO;
import io.renren.modules.communityService.entity.DbOneClickAlarmEntity;
import io.renren.modules.communityService.vo.DbOneClickAlarmVO;
import io.renren.modules.miniapp.dto.MiniAppDbOneClickAlarmSaveDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author chenweilong
 * @email 1433471850@qq.com
 * @date 2020-02-07 12:36
 */
@Mapper
public interface DbOneClickAlarmConver {

    DbOneClickAlarmConver MAPPER =  Mappers.getMapper(DbOneClickAlarmConver.class);

    DbOneClickAlarmEntity converDTO(DbOneClickAlarmDTO dbOneClickAlarmDTO);

    List<DbOneClickAlarmEntity> converDTO(List<DbOneClickAlarmDTO> dbOneClickAlarmDTOs);

    DbOneClickAlarmVO conver(DbOneClickAlarmEntity dbOneClickAlarmEntities);

    List<DbOneClickAlarmVO> conver(List<DbOneClickAlarmEntity> dbOneClickAlarmEntities);

    DbOneClickAlarmEntity conver1(MiniAppDbOneClickAlarmSaveDTO miniAppDbOneClickAlarmSaveDTO);

    List<DbOneClickAlarmEntity> conver1(List<MiniAppDbOneClickAlarmSaveDTO> miniAppDbOneClickAlarmSaveDTOS);

}
